package com.zsrt.java.day20170103.wrl.demo05;

import org.junit.Test;

public class Manager02Test {

	@Test
	public void test() {
		//oop:面向对象编程
		//ImpZhangSan zs = new ImpZhangSan();
		
		//oip:面向接口编程
		IManager02 zs = new ImpZhangSan();
		zs.core();
		zs.login();
		
		//方法的调用相同：多态
		IManager02 lisi = new ImpLiSi();
		lisi.core();
		lisi.login();
	}

}
